PageM2.js/**
 * Created by Administrator on 2017/4/11 0011.
 */
var PageM3={
    create:function () {
        var page={};

        page.ui=new PIXI.DisplayObjectContainer();
        var bg=Easy.CreateSprite('assets/images/pm3_bg.png',0,0,0,0,1);
        page.ui.addChild(bg);

        var bt_back=Easy.CreateSprite('assets/images/bt_back.png',110,45,0.5,0.5,0);
        bt_back.interactive=true;
        bt_back.on('pointertap',downHandler);
        page.ui.addChild(bt_back);

        var bt_music=Easy.CreateSprite('assets/images/bt_music2.png',670,45,0.5,0.5,1);
        bt_music.interactive=true;
        bt_music.on('pointertap',function () {
            volumeChange2();
        });
        page.ui.addChild(bt_music);


        var t0=Easy.CreateSprite('assets/images/pm3_t0.png',370,50,0.5,0.5,0);
        page.ui.addChild(t0);
        var tip=Easy.CreateSprite('assets/images/tip.png',370,1105,0.5,0.5,1);
        TweenMax.to(tip,1,{repeat:-1,yoyo:true,y:1105+30,alpha:0.7,ease:Cubic.easeInOut});
        page.ui.addChild(tip);

        page.In=function () {
            TweenMax.to(t0,1,{alpha:1});
            TweenMax.to(bt_back,1,{alpha:1});
        }
        page.Out=function () {
            t0.alpha=0;
            bt_back.alpha=0;
        }
        function downHandler(e)
        {
            document.dispatchEvent(new CustomEvent('Game_PageIn',{detail:'choose'}))
        }

        return page;
    }
}